//
//  UIButton+BCYImage.h
//  VMall
//
//  Created by dev on 2017/7/27.
//  Copyright © 2017年 mohao. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIButton(BCYImage)

/*! @brief 设置图片居中
 *
 * 默认图片为3x
 *
 */
-(void)setImageCenter;

/*! @brief 设置图片居中
 *
 * 根据实际图片倍数进行缩放居中
 * @param scale 图片倍数
 *
 */
-(void)setImageCenterOfScale:(NSInteger)scale;

/*! @brief 设置图片居中
 *
 * 根据传入图片size进行缩放居中
 * @param size 手动指定图片的尺寸
 *
 */
-(void)setCenterByImageSize:(CGSize)size;

@property (nonatomic,readonly) CGPoint imageCenter;
@property (nonatomic) CGFloat edgeInsetLeft;     ///< Shortcut for EdgeInsets.Left
@property (nonatomic) CGFloat edgeInsetRight;     ///< Shortcut for EdgeInsets.Right
@property (nonatomic) CGFloat edgeInsetTop;     ///< Shortcut for EdgeInsets.Top
@property (nonatomic) CGFloat edgeInsetBottom;     ///< Shortcut for EdgeInsets.Bottom

@end
